package com.kiwi.cases.match.usermatch;

/**
 * 用户位置信息，目前只使用 用户id、经度、纬度
 * @author: xuboru on 2018/1/8
 */
public class UserMatchOnConditionVo extends UserMatchVo
{

    private Integer selectSex;

    private Integer selectAgeMax;

    private Integer selectAgeMin;

    public Integer getSelectSex()
    {
        return selectSex;
    }

    public UserMatchOnConditionVo setSelectSex(Integer selectSex)
    {
        this.selectSex = selectSex;
        return this;
    }

    public Integer getSelectAgeMax()
    {
        return selectAgeMax;
    }

    public UserMatchOnConditionVo setSelectAgeMax(Integer selectAgeMax)
    {
        this.selectAgeMax = selectAgeMax;
        return this;
    }

    public Integer getSelectAgeMin()
    {
        return selectAgeMin;
    }

    public UserMatchOnConditionVo setSelectAgeMin(Integer selectAgeMin)
    {
        this.selectAgeMin = selectAgeMin;
        return this;
    }

    @Override
    public String toString()
    {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"selectSex\":")
                .append(selectSex);
        sb.append(",\"selectAgeMax\":")
                .append(selectAgeMax);
        sb.append(",\"selectAgeMin\":")
                .append(selectAgeMin);
        sb.append(",\"accountId\":\"")
                .append(accountId).append('\"');
        sb.append(",\"longitude\":")
                .append(longitude);
        sb.append(",\"latitude\":")
                .append(latitude);
        sb.append(",\"altitude\":")
                .append(altitude);
        sb.append(",\"acuracy\":")
                .append(acuracy);
        sb.append(",\"from\":\"")
                .append(from).append('\"');
        sb.append(",\"sex\":")
                .append(sex);
        sb.append(",\"age\":")
                .append(age);
        sb.append(",\"matchTime\":")
                .append(matchTime);
        sb.append('}');
        return sb.toString();
    }
}
